/*
 * COPYRIGHT. ShenZhen iByte Technology Co., Ltd. 2018.
 * ALL RIGHTS RESERVED.
 *
 * No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
 * on any form or by any means, electronic, mechanical, photocopying, recording, 
 * or otherwise, without the prior written permission of ShenZhen iByte Network Technology Co., Ltd.
 *
 * Amendment History:
 * 
 * Date                   By              Description
 * -------------------    -----------     -------------------------------------------
 * Nov 30, 2018    Li.shangzhi         Create the class
*/
package com.github.icloud.elasticsearch.api.docment;
import org.elasticsearch.action.get.GetResponse;
import org.junit.Test;
import com.github.icloud.elasticsearch.ElasticsearchClientBase;
/**
 * @FileName GetAPI.java
 * @Description: 
 *
 * @Date Nov 30, 2018 6:26:33 PM
 * @author Li.shangzhi
 * @version 1.0
 */
public class GetAPI extends ElasticsearchClientBase{
	
	@Test
	public void iEsprepareGet() throws Exception{
		GetResponse response =client.prepareGet("icloud-iot-log","icloud-auth","abdeffd5355c420e989a5cbc18193be7").get();
		if(response.isExists()){
			System.out.println("文档内容：" + response.toString());
		}
	}

}
